package net.sxnic.workflow.chart.action;

import net.sxnic.workflow.chart.PlumbChartNode;

@SuppressWarnings("serial")
public class NodeCreate extends ChartAction{
	
	public String execute() throws Exception{
		
		System.out.println("==创建节点=之前=="+nodeList.size());
		
		PlumbChartNode p = new PlumbChartNode();
		p.setId("10");
		p.setLeft(220);
		p.setTop(380);
		p.setPrcs_content("新增节点");
		p.setPrcs_type("start");
		p.setPrcs_id("10");
		p.setTitle("xxx yyyy-MM-dd HH:ss 办理");
		p.setTo("0");
		
		nodeList.add(p);
		
		for(PlumbChartNode pp:nodeList){
			if("3".equals(pp.getPrcs_id())){
				pp.setTo("10");
			}
		}
		
		System.out.println("==创建节点=之后=="+nodeList.size());
		
		return SUCCESS;
	}
}
